<?php

namespace App\Http\Controllers\Common;

use App\Http\Controllers\BaseController;
use App\Params\Common\CommonListParam;
use App\Params\Common\ImageListParams;
use App\Service\Common\ImageService;

class ImageController extends BaseController
{
    public function list()
    {
        $param = ImageListParams::create();
        $list = ImageService::getInstance()->getList($param);
        return $this->success($list);
    }

    public function typeList(): \Illuminate\Http\JsonResponse
    {
        $param = CommonListParam::create();
        $list = ImageService::getInstance()->getTypeList($param);
        return $this->success($list);
    }
}
